// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from '../App'
import router from '../router/show'
import 'reset.css'

import '@/less/tools.less'
import '@/less/pc_main.less'
import utils from '../utils'
(function () {
  const channel = utils.queryString().channel;
  if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
    // window.location.href = `/index.html?channel=${channel}`
    window.location.href = `/camellia-sample/index.html?channel=${channel}`

  }
})()
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app', router, components: {
    App
  }, template: '<App/>'
})
